package com.atguigu.springcloud.bind;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.messaging.SubscribableChannel;

/**
 * @author timiv
 */
public interface MyBind {
    /**
     * Input channel name.
     */
    String INPUT_1 = "input-1";
    String INPUT_2 = "input-2";

    /**
     * @return input channel.
     */
    @Input(MyBind.INPUT_1)
    SubscribableChannel input();

    @Input(MyBind.INPUT_2)
    SubscribableChannel input2();
}
